<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件

function kakaDebug(){
    $data = debug_backtrace();
    foreach ($data as $k => $v) {
        // $result[$k]['file'] = $v['file'];
        // $result[$k]['line'] = $v['line'];
        // $result[$k]['function'] = $v['function'];
        // $result[$k]['class'] = $v['class'];
        unset($data[$k]['object']);
        unset($data[$k]['args']);
        unset($data[$k]['type']);
    }
    print_r(array_reverse($data));die;
}
